

public class CMD {

	/**
	 * @param args
	 */
	public static void  recur (int a){
		if(a <= 0 ) { System.out.println(a); return;}

		System.out.println(a);
		recur(--a);
		System.out.println(a);
	}
	public static void main(String[] args) {
		
		String str = "jai";
		StringBuffer sbr = new StringBuffer("jai");
		sbr.append('b');
		String str1 = str.concat("kumar");
		try {
		System.out.println(sbr.charAt(3));
		System.out.println(str1.charAt(3));
		} catch (StringIndexOutOfBoundsException e) {
			System.out.println("Error in input");
			
		}
		for(int i=0; i< args.length;i++){
			System.out.println(args[i]);
		}
		
		// Calling Recursion 
		recur(5);
		// TODO Auto-generated method stub

	}

}
